public class Main
{
    public static boolean losNinosCreenEnLaNavidad = true;

    public static int N_ELVES = 30;
    public static int N_REINDEER = 9;

    private static void startThreads(ArrayList<Thread> ts)
    {
        ListIterator it = ts.listIterator();
        while (it.hasNext())
            it.next().start();
    }

    public static void main(String[] args)
    {
        ArrayList<Thread> threads = new ArrayList<Thread>();
        Thread santa = new Santa();
        Thread[] reindeer = new Reindeer[N_REINDEER];
        Thread[] elves = new Elf[N_ELVES];
        threads.add(santa);
        for (Thread i : reindeer)
            threads.add(i);
        for (Thread i : elves)
            threads.add(i);
        startThreads(threads);
    }
}
